package com.liao.common.entity.order;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 订单商品明细
 *
 * @author liao
 * @email 2858015963@qq.com
 * @date 2025-03-14 09:23:11
 */
@Data
@TableName("order_item")
public class OrderItemEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 订单项ID
     */
    @TableId
    private Integer itemId;
    /**
     * 所属订单号
     */
    private String orderId;
    /**
     * 购买SKUID
     */
    private Integer skuId;
    /**
     * 购买数量
     */
    private Integer quantity;
    /**
     * 成交单价
     */
    private BigDecimal price;
    /**
     * 购买时属性快照
     */
    private String attributes;
    /**
     * 小计
     */
    private BigDecimal totalmoney;

}
